package com.zlsf.entity;

/**
 * Created by houcheng on 2019-12-11.
 * 数据流，可能是视频或是音频，视频为FLV封装，音频为PCM编码的片断
 */
public class Media {
  public enum Type {Video, Audio}

  ;

  public Type type;
  public com.zlsf.entity.MediaEncoding.Encoding encoding;
  public long sequence;
  public byte[] data;

  public Media(long seq, com.zlsf.entity.MediaEncoding.Encoding encoding, byte[] data) {
    this.type = type;
    this.data = data;
    this.encoding = encoding;
    this.sequence = seq;
  }
}
